package com.speaktoitcookbook.bean;

import java.util.Date;

/**
 * 用户对菜谱的评论信息实体
 * 
 * @author 杨强
 * 
 */
public class Comment {
    private long commentID;
    private String userID;
    private long cookbookID;
    private Date commentDate;
    private double stars;
    private String content;

    public Comment() {
        this.commentID = 0L;
        this.userID = "";
        this.cookbookID = 0L;
        this.commentDate = new Date();
        this.stars = 0F;
        this.content = "";
    }

    /**
     * 获取评论信息ID
     * 
     * @return 评论信息ID
     */
    public long getCommentID() {
        return commentID;
    }

    /**
     * 设置评论信息ID
     * 
     * @param commentID
     *            评论信息ID
     */
    public void setCommentID(long commentID) {
        this.commentID = commentID;
    }

    /**
     * 获取用户ID
     * 
     * @return 用户ID
     */
    public String getUserID() {
        return userID;
    }

    /**
     * 设置用户ID
     * 
     * @param userID
     *            用户ID
     */
    public void setUserID(String userID) {
        this.userID = userID;
    }

    /**
     * 获取菜谱ID
     * 
     * @return 菜谱ID
     */
    public long getCookbookID() {
        return cookbookID;
    }

    /**
     * 设置菜谱ID
     * 
     * @param cookbookID
     *            菜谱ID
     */
    public void setCookbookID(long cookbookID) {
        this.cookbookID = cookbookID;
    }

    /**
     * 获取评论时间
     * 
     * @return 评论时间
     */
    public Date getCommentDate() {
        return commentDate;
    }

    /**
     * 设置评论时间
     * 
     * @param commentDate
     *            评论时间
     */
    public void setCommentDate(Date commentDate) {
        this.commentDate = commentDate;
    }

    /**
     * 获取评论分数
     * 
     * @return 评论分数
     */
    public double getStars() {
        return stars;
    }

    /**
     * 设置评论分数
     * 
     * @param stars
     *            评论分数
     */
    public void setStars(double stars) {
        this.stars = stars;
    }

    /**
     * 获取评论内容
     * 
     * @return 评论内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置评论内容
     * 
     * @param content
     *            评论内容
     */
    public void setContent(String content) {
        this.content = content;
    }
}
